package com.mbl.base.modular.base.controller;

import com.mbl.base.core.common.dto.MblResult;
import com.mbl.base.core.modular.oshi.SystemHardwareInfo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 系统综合接口
 */
@RestController
@RequestMapping("/base")
public class SystemController {
    /**
     * 系统硬件信息
     * @author lwj
     * @Date 2018/12/24 22:43
     */
    @RequestMapping("/systemInfo")
    public MblResult systemInfo() {
        SystemHardwareInfo systemHardwareInfo = new SystemHardwareInfo();
        systemHardwareInfo.copyTo();
        return MblResult.success(systemHardwareInfo);
    }
}
